import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 按需引入 vant
import 'vant/lib/index.css';
import { vant } from '@/plugin/vant.js'
// 引入默认样式
import '@/assets/css/normalize.css'
// 引入公共样式
import '@/assets/css/index.css'
// 引入封装 axios
import '@/utils/axios.js'
// 引入封装 rem
import '@/utils/rem.js'
// 引入图片懒加载
import lazyPlugin from 'vue3-lazy'

// 挂载
const app = createApp(App)
vant(app)
app.use(store)
app.use(router)
app.mount('#app')
// 图片懒加载
// app.use(lazyPlugin, {
//     loading: require('@/assets/img/gif/Pinwheel.gif'), // 图片加载时默认图片
//     // error: require('@/assets/images/error.png')// 图片加载失败时默认图片
// })
